package org.example.mbg.mapper;


import org.example.mbg.model.ProductByOrder;
import org.springframework.stereotype.Component;

import java.util.List;

/*
多表联查映射接口
 */
@Component
public interface ProductByOrderMapper {
    //根据usr_id 查找订单及商品信息
    List<ProductByOrder> selectProductByUserId (Long userId);
    //根据usr_id和product_id 查找订单及商品信息
    List<ProductByOrder> selectProductByUserAndProductId (Long userId,Long productId);
}
